<?php
    $table = array('id', 'title', 'parent_id', 'edit', 'remove');
?>
<table>
    <thead>
        <tr>
            <?php
                foreach($table as $value)
                {
                    echo '<td>'.$value.'</td>';
                }
            ?>
        </tr>
    </thead>
        <?php foreach($list_category as $category): ?>
            <tr>
                <td><?php echo $category->id;?></td>
                <td><?php echo $category->title;?></td>
                <td><?php echo $category->parent_id;?></td>
                <td><a href="<?php echo base_url().'index.php/category/item?id='.$category->id;?>">edit</a></td>
                <td><a href="<?php echo base_url().'index.php/category/remove?id='.$category->id;?>">remove</a></td>
            </tr>
        <?php endforeach; ?>
</table>
